/**
 * API 列表
 */

const SERVER = {

  //URL: "https://devapi.nowbook.sup.services/", //测试
  URL: "https://api.nowbook.sup.services/",//正式环境

  APPID: 'zhishu', //配置APPID

  DEV: false // 环境设置  

}

const CONFIG = {

  // 合并请求
  MERGEREQUEST: 'api/media/index/mergeRequest',

  FILE: {
    GETAUTHURL: "", //获取文件授权访问地址
    GETPLAYURL: "api/media/data/getPlayUrl"
  },

  //知書幣相關接口
  COIN: {
    CONFIG: "api/media/coin/config", //充值知書幣配置
    BUYCOIN: "api/media/coin/buy", //充值購買知書幣
    ACCOUNT: 'api/media/coin/account',//查询余额
    PAYCOIN: 'api/media/coin/pay'
  },


  ORDER: {
    BUY: "api/media/order/buy",
    BUYLIST: "api/media/order/queryBuyList",
  },

  // 专栏接口
  COLUMN: {

    // 获取专栏
    GET: "api/media/list/get",

    // 获取热门关键词
    GETHOTKEYWORDS: "api/media/list/getHotKeywords",

    // 查询
    QUERY: "api/media/list/query",

    // 搜索
    SEARCHBYKEYWORD: "api/media/list/searchByKeyword",

    // 根据标签搜索
    SEARCHBYTAG: "api/media/list/searchByTag",

    // 根据栏目code搜索更多
    SEARCHMOREBYKEYWORD: "api/media/list/searchMoreByKeyword",

    // 根据标签搜索更多
    SEARCHMOREBYTAG: "api/media/list/searchMoreByTag",

  },


  //多媒體文件接口
  MEDIA: {
    GET: "api/media/data/get",
    GETBLOCKBYCODE: "api/media/cms/getBlocklistByCode"
  },

  //评论接口
  COMMENT: {

    // 添加评论
    ADD: "api/comment/add",

    // 取消点赞
    CANCELLIKE: "api/comment/cancelLike",

    // 获取置顶评论
    GETTOP: "api/comment/getTop",

    // 点赞
    LIKE: "api/comment/like",

    // 查询评论列表
    QUERY: "api/comment/query",

  },

  //用戶操作記錄接口
  OPERATE: {
    ADD: "api/media/operate/add",
    CANCEL: 'api/media/operate/cancel',
    QUERY: 'api/media/operate/query'
  },

  //區塊接口
  BLOCK: {
    GET: 'api/cms/getBlocklistByCode', // 区块列表
  },

  BOOK: {
    //相关书籍推荐
    RELBOOK: "api/book/rel/get"
  },

  USER: {
    TELLOGIN: "api/user/loginTel", //手機號註冊登錄
    TELVERIFICATIONCODE: "api/user/getTelVerificationCode", //發送手機驗證碼
    REGISTER: "api/user/register", //郵箱註冊
    EMAILVERIFICATIONCODE: "api/user/getVerificationCode", //發送郵箱驗證碼
    LOGIN: "api/user/login", //登錄
    GETUSERINFO: "api/user/getUserInfo", //獲取用戶信息
    CHANGEEMAIL: "api/user/changeEmail", //更換郵箱
    BINDEMAIL: "api/user/bindEmail", //綁定郵箱
    BINDPHONE: "api/user/bindPhone", //綁定手機
    LOGOUT: "api/user/logout", //退出登錄
    UPDATEINFO: "api/user/updateInfo", //更新用戶信息
    WECHATLOGIN: "api/user/wechatLogin", //微信登錄
    FORGETPASSWORD: "api/user/forgetPassword", //忘記密碼
    THIRDLOGIN: 'api/user/thirdLogin',//第三方登录

    GETCOINACCOUNTINFO: "api/media/coin/account",

  },

  epub: {
    getToken: "api/media/data/getEpubToken",
    token: "api/media/epub/token",
    addBookMark: "api/media/epub/bookmark/save",
    getBookMark: "api/media/epub/bookmark/query",
    deleteBookMark: "api/media/epub/bookmark/delete"
  }

}


module.exports = {
  CONFIG,
  SERVER,
}
